package com.jh.paymentchannel.repository;

import com.jh.paymentchannel.pojo.JFMQuickBindCard;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface JFMQuickBindCardRepository extends JpaRepository<JFMQuickBindCard, String>,JpaSpecificationExecutor<JFMQuickBindCard> {

	@Query("select jfm from JFMQuickBindCard jfm where jfm.userId=:userid and jfm.bankCard=:bankCard")
	JFMQuickBindCard getJFMQuickBindCard(@Param("userid") long userid, @Param("bankCard") String bankCard);
}
